<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<div id="message">
	<input type="text" style="display:none" id="saveMessage" value="${message}">
</div>
<script>
$(function(){
	if ($("#saveMessage").val()!="" && $("#saveMessage").val()!=null){
		//$("#message").addClass("messageShow");
		/* layer.alert($("#saveMessage").val(),function(){
			top.layer.location.reload(); 
			this.layer.close();
		}); */
		//Dialog.CancelEvent(Dialog.alert(123,function(parentDialog&&parentDialog.close())););
		if($("#saveMessage").val()!="直接关窗口"){
			layer.alert($("#saveMessage").val(),9,function(){
				parent.location.reload();
		    	parent.layer.close();
			});
		}else{
			parent.location.reload();
	    	parent.layer.close();
		}
		
		/* $.layer({
			type: 0,
			offset: [($(window).height() / 4)+'px',''],
		    title: '提示信息',
		    msg: $("#saveMessage").val(),
		    area: ['150px', '150px'],
		    end : function () {
		    	parent.location.reload();
		    	parent.layer.close();
		    }
		}); */
		//layer.closeAll();
	}

});
</script>
